package com.extractor;

/**
 * Created by IntelliJ IDEA.
 * User: SeedMiner
 * Date: Jul 20, 2010
 * Time: 10:20:56 AM
 * To change this template use File | Settings | File Templates.
 */
public class DataKey {
    public String STYLE;
    public String CW;

    public DataKey(String STYLE, String CW) {
        this.STYLE = STYLE;
        this.CW = CW;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DataKey dataKey = (DataKey) o;

        if (!CW.equals(dataKey.CW)) return false;
        if (!STYLE.equals(dataKey.STYLE)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = STYLE.hashCode();
        result = 31 * result + CW.hashCode();
        return result;
    }
}
